import {Injectable} from '@angular/core';
import {HttpClient} from '../../../../providers/httpClient';
import {Config} from '../../../../providers/config';

@Injectable()
export class MarketingOrganizationChooseService {
  constructor(public httpClient: HttpClient,
              public config: Config) {
  }

  /**
   * [getOrganizationList 获取机构列表]
   * @param
   */
  getOrganizationList(page, keyWord) {
    let postBody = {
      "module": "KSB",
      "method": "USP_A02_0040",
      "type": "USP",
      "params": {
        "usr_id": "",
        "vc_cus_name": keyWord,
        "pageLines": this.config.pageSize,
        "currentPage": page
      }
    };
    return this.httpClient.post(postBody, {
    });
  }
}
